<?php
$config = require_once '../config.php';

$redis = new Redis();
$redis->connect($config['redis_ip'], $config['redis_port']);//ip端口
$redis->auth($config['redis_auth']);//密码
$redis->set('say', 'bye!');
echo $redis->get('say');